package com.bgs.mapper;

import com.bgs.pojo.OrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgs.pojo.Picture;
import com.bgs.pojo.vo.FourVideo;
import com.bgs.pojo.vo.OrderDetailTow;
import com.bgs.pojo.vo.FourOrderDetail;
import com.bgs.pojo.vo.ThreeDetPic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品详情表 Mapper 接口
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {

    boolean zeroOrderDetailState4(Integer orderDetailId);
    //后台商品审核查看
    List<OrderDetail> TowGettableDataShang(String orderDetailName,Integer storeId);
    //后台商品审核通过
    int TowShangShen(Integer orderDetailId);
    //后台商品审核不通过
    int TowShangShenNo(Integer orderDetailId);
    //查询购物车商品
    List<OrderDetail> TowOrderDetail(Integer storeId);
    //圈子远程调用
    List<OrderDetailTow> TowgetOrderDetail(Integer orderDetailId);

    List<Picture> TowGetPictures(Integer orderDetailId);

    List<OrderDetail> zeroOrderDetailIdToOrderDetail(Integer orderDetailId);
    //服务远程调用查看所有2商品
    List<OrderDetail> TowOrderList(Integer storeId);

    //查询商品
    List<OrderDetail> fourOpenshop(@Param("i") Integer i,@Param("shangpinid") Integer shangpinid);
    List<OrderDetail> fourOpenshop(int i);

    //上架物品
    int fourOrderDetail(FourOrderDetail fourOrderDetail);

    //添加商品图片
    int fourAddImg(@Param("id") Integer id, @Param("fourOrderDetail") FourOrderDetail fourOrderDetail);

    //查询商品详情
    FourOrderDetail fourQueryDetail(int id);

    //查询所有商品
    List<FourVideo> fourIndexShow();

    ThreeDetPic ThreeSelectDetail(Integer orderDetailId);

    boolean minRepertory(Integer i1, Integer i2);
    //添加视频
    int fourVideo(@Param("id") Integer id,@Param("fourOrderDetail") FourOrderDetail fourOrderDetail);
}
